<?php
class Curriculo extends AppModel {
	var $name = 'Curriculo';
	//The Associations below have been created with all possible keys, those that are not needed can be removed

	var $belongsTo = array(
		'Moeda' => array(
			'className' => 'Moeda',
			'foreignKey' => 'moeda_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'RegimeSalario' => array(
			'className' => 'RegimeSalario',
			'foreignKey' => 'regime_salario_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);

	var $hasMany = array(
		'Experiencia' => array(
			'className' => 'Experiencia',
			'foreignKey' => 'curriculo_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		),
		'Referencia' => array(
			'className' => 'Referencia',
			'foreignKey' => 'curriculo_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		)
	);


	var $hasAndBelongsToMany = array(
		'Area' => array(
			'className' => 'Area',
			'joinTable' => 'areas_curriculos',
			'foreignKey' => 'curriculo_id',
			'associationForeignKey' => 'area_id',
			'unique' => true,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'finderQuery' => '',
			'deleteQuery' => '',
			'insertQuery' => ''
		),
		'TipoEmprego' => array(
			'className' => 'TipoEmprego',
			'joinTable' => 'tipo_empregos_curriculos',
			'foreignKey' => 'curriculo_id',
			'associationForeignKey' => 'tipo_emprego_id',
			'unique' => true,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'finderQuery' => '',
			'deleteQuery' => '',
			'insertQuery' => ''
		)
	);

}
